package com.cynteka.cyfoman.core.collection;

import sun.misc.Regexp;

import java.util.List;

/**
 * User: Sergey
 * Date: 05.08.11
 * Time: 11:25
 */
public class RegexpAppender implements IRegistryAppender {


    private String collectionId;
    private String regexp;
    private List<String> variables;

    public String getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(String collectionId) {
        this.collectionId = collectionId;
    }

    public String getRegexp() {
        return regexp;
    }

    public void setRegexp(String regexp) {
        this.regexp = regexp;
    }

    public List<String> getVariables() {
        return variables;
    }

    public void setVariables(List<String> variables) {
        this.variables = variables;
    }

    @Override
    public ICollection[] getCollections() {
        return new ICollection[]{new RegexpTableCollection(collectionId, regexp, variables)};  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public ILink[] getLinks() {
        return new ILink[0];
    }
}
